﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Collections;

namespace BUS
{
    public class ThanhVienBUS
    {
        private ThanhVienDTO _info = new ThanhVienDTO();
        private ThanhVienDAO _data = new ThanhVienDAO();

        public ThanhVienDTO ThanhVien
        {
            get { return _info; }
            set { _info = value; }
        }
        public void insert()
        {
            _data.insert(_info);
        }
        public ArrayList getDsThanhVien()
        {
            return _data.getDsThanhVien();
        }
        public void update()
        {
            _data.update(_info);
        }
        public void delete()
        {
            _data.delete(_info.MaThanhVien);
        }
    }
}
